# 多层while嵌套
print("打印三角形")
i = 1
while i<=5:
    j = 1
    while j<=i:
        print("* ",end='')
        j+=1
    print("\n")
    i+=1

print("打印九九乘法表")

a = 1
while a<=9:
    t=1
    while t<=a:
        print("%d*%d=%-2d "%(t,a,a*t),end='')
        t+=1
    print('\n')
    a+=1